#pragma once
#include <QWidget>
#include <QStackedWidget>
#include "OPeratorinter.h"
#include "TitleWidget.h"
#include "PageElement.h"
#include "item/ItemBase.h"
class ModelWidget :
    public PageElement
{
    Q_OBJECT
public:
    ModelWidget(QWidget* parent);
    void addWidget(QWidget* title, QWidget* page);
	void enter() override;
	//void esc()override;
	//void left()override;
	//void right()override;
	//void up()override;
	//void down() override;

	void comeIn()override;
	void leave() override;
private:
    TitleWidget* m_title{ nullptr };
    QVBoxLayout* m_mainLayout{ nullptr };
    QStackedWidget* m_stackedWidget{ nullptr };
};

